<template>
  <div>
    <!-- 组件上使用v-model -->
    <!-- <input type="text" v-model="message" /> -->
    <my-input v-model="message" v-model:title="title"></my-input>
    <h2>{{ message }}</h2>
    <h2>{{ title }}</h2>
  </div>
</template>

<script>
import MyInput from "./MyInput2.vue";

export default {
  components: { MyInput },
  data() {
    return {
      message: "Hello World",
      title: "Hello World",
    };
  },
};
</script>

<style scoped></style>
